#include "Music.h"

//索引与频率对照表
unsigned int code FreqTable[]={
	0,
	63628,63731,63835,63928,64021,64103,64185,64260,64331,64400,64463,64528,
	64580,64633,64684,64732,64777,64820,64860,64898,64934,64968,65000,65030,
	65058,65085,65110,65134,65157,65178,65198,65217,65235,65252,65268,65283,
};

unsigned char code Music_HuaHai[]={
	//花海---周杰伦
	//音符,时值,	
	//1行号
	P,	4,	M1,	4,	M2,	4,	M3,	4,	M5,	4,	M5,	4+2,	M3,	4,	M2,	4,	M1,	4,	M2,	4,	M3,	4,	P,	4,	
	//2行号
	M1,	4,	M2,	4,	M3,	4,	M7,	4,	H1,	4,	H1,	4,	M7,	4,	M6,	4,	M5,	4,	M6,	4,	M5,	4,	P,	4,	
	//3行号
	M1,	4,	M2,	4,	M3,	4,	M5,	4,	M5,	4+2,	M3,	4,	M2,	4,	M1,	4,	M2,	4,	M1,	4,	P,	4,	
	//4行号
	M1,	4,	M2,	4,	M3,	4,	M5,	4,	M5,	4+2,	M4,	4,	M4,	4,	M3,	4,	H1,	4,	M3,	4,	M2,	4,	P,	4,
	//最后一行
	M1,	4,	M2,	4,	M3,	4,	M5,	4,	M1,	4,	M1,	4+2,	L7, 4,	L6, 4,	L7, 4,	M1,	4,
	0xFF

};

unsigned char code Music_Castle_in_the_Sky[]={
	//《天空之城》
	//音符,时值,	
	//1行号
	P,	4,	P,	4,	P,	4,	M6,	2,	M7,	2,	//每一小节 时值都是16	
	H1,	4+2,	M7,	2,	H1,	4,	H3,	4,	M7,	4+4+4,	M3,	2,	M3,	2,
	//2
	M6,	4+2,	M5,	2,	M6, 4,	H1,	4,	
	M5,	4+4+4,	M3,	4,	
	M4,	4+2,	M3,	2,	M4,	4,	H1,	4,	
	//3
	M3,	4+4,	P,	2,	H1,	2,	H1,	2,	H1,	2,	
	M7,	4+2,	M4_,2,	M4_,4,	M7,	4,	
	M7,	8,	P,	4,	M6,	2,	M7,	2,	
	//4
	H1,	4+2,	M7,	2,	H1,	4,	H3,	4,	
	M7,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 1, M4, 1, 			M4, 2, M4, 2, M4, 2, 			M2, 2,  M2,  2,  P , 2, M6, 1,  M6, 1, M5, 2, M5, 2, M4, 2, M5, 4, P , 4,
	M3, 2, M3, 2, M3, 2, M3, 2, 	M3, 2, M5, 2, M5, 2, M5, 2,		M5, 2, M4, 2,  M4, 2, M3, 2,  M4, 2, P , 4,
	M2, 2, M2, 2, M2, 2, M2, 2,		M2, 2, M3, 2, M4, 2, M4, 2, 	M4, 2, M3, 2, M3, 2, M4, 2, 	M5, 2, P, 2, M6, 2, M5, 2, 
	M6, 4, M1, 2, M1, 2, 			M1, 2, M6, 2, P,  2, M6, 2,     M5, 2, M5, 2, M5, 2, M6, 2,  	
	M5, 5, P,  2, M4, 2, 			M4, 2, M4, 2, M4, 2, M4, 2, 	M2, 2, M1, 2, M2, 2, M1, 1, 	M1, 1, P,4,
	0xFF
};





